//
//  LMKMessage.h
//  LMK
//
//  Created by xuxinhua on 2020/2/6.
//  Copyright © 2020 xuxinhua. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "LMKFromUser.h"
#import "LMKToUser.h"
#import "LMKPayload.h"
/**
 {
   "version":"1.0",
   "sdk_type":"h5",
   "sdk_version":"0.1",
   "app_id":"imKit_demo_web",
   "msg_seq":"xxxx-xxxx-xxxx-xxxx",
   "timestamp":"wwwwwwww",
   "from":{
     "fromType":"user",
     "accId":"admin",
     "accToken":"77c206b54e984e8f9072006921a56495",
     "icon":"http://121.36.152.59:27920/static/images/usericon/4.png",
     "nickName":"管理员"
   },
   "to":{
     "roomStatus":1,
     "roomName":"4444",
     "roomType":"p2p",
     "roomEx":"{\"a\":1,\"b\":2}",
     "target":"1000011"
   },
   "payload":{
     "content_type":"message",
     "quote_msg_seq":"xxxx-vvvv-bbbb-nnnn",
     "message_type":"text",
     "isAttach":false,
     "content":"您好，欢迎体验imKit-web-demo，如需了解更多可到咚咚文档库查看",
     "atAccToken":[],
     "notify_type":"readed",
     "extend":{
 
     }
   }
 }

 */
@interface LMKMessage : NSObject<NSCopying,NSMutableCopying>
/**
 报文版本号
 */
@property (nonatomic,copy) NSString *version;
/**
 sdk类型
 */
@property (nonatomic,copy) NSString *sdkType;
/**
 sdk版本号
 */
@property (nonatomic,copy) NSString *sdkVersion;
/**
 应用ID
 */
@property (nonatomic,copy) NSString *appId;

/**
 clientId sdk生成
 */
@property (nonatomic,copy) NSString *clientId;
/**
 消息序列
 */
@property (nonatomic,copy) NSString *msgSeq;
/**
 当前时间戳13位(毫秒)
 */
@property (nonatomic,assign) long timestamp;
/**
 消息发送者
 */
@property (nonatomic,strong) LMKFromUser *from;
/**
 消息接收者
 */
@property (nonatomic,strong) LMKToUser *to;
/**
 消息报文本体
 */
@property (nonatomic,strong) LMKPayload *payload;
/**
 接收回执
 */
@property (nonatomic,assign,getter=isReceivedAck) BOOL receivedAck;
/**
 已读回执
 */
@property (nonatomic,assign,getter=isReadedAck) BOOL readedAck;
@end

